Skip to content

Fix a bug where tags were being lost when creating buckets in us-east-1#6492

Merged
L-Applin merged 2 commits intomasterfrom
olapplin/s3-tags
Oct 27, 2025
Merged

Fix a bug where tags were being lost when creating buckets in us-east-1#6492
L-Applin merged 2 commits intomasterfrom
olapplin/s3-tags

Conversation

@L-Applin
Copy link
Contributor

Tags are being lost with create bucket requests for us-east-1 when location constraint is not manually specified.

Motivation and Context

Tags were lost because the CreateBucketInterceptor sets the whole body of the request to null for us-east-1 region when location constraint is not specified. CreateBucketInterceptor sets it to null since us-east-1 requires no location constraint.

Modifications

Do not set full body to null of Tags are specified, instead copy the tags and only set locationConstraint to null.

Testing

Added unit test

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

@L-Applin L-Applin requested a review from a team as a code owner October 21, 2025 16:05
@sonarqubecloud
Copy link

@L-Applin L-Applin added this pull request to the merge queue Oct 27, 2025
Merged via the queue into master with commit 2307338 Oct 27, 2025
48 of 49 checks passed
@github-actions
Copy link

This pull request has been closed and the conversation has been locked. Comments on closed PRs are hard for our team to see. If you need more assistance, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 27, 2025
@L-Applin L-Applin deleted the olapplin/s3-tags branch December 2, 2025 05:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants